var killport = require('./killport');
var config = {
  selenium_port: 4444,
  server_port: 98989
};

// 1. kill any process listenning on `selenium_port`
killport(config.selenium_port)
// 2. kill any process listenning on `server_port`
.then(function() {
  return killport(config.server_port);
})
// 3. start selenium server
.then(function() {
  console.log('done');
})
// 3. start web server
.then(function() {
})
// 4. run test 
.then(function() {
})
// other: catch error
.catch(function(err) {

});
